﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Trans.customer
{
    public partial class Select_customer : Form
    {
        public Select_customer()
        {
            InitializeComponent();
        }
        public int Id
        {
            get
            {
                return (int)dataGridViewX1.SelectedRows[0].Cells["id"].Value;
            }
        }
        public string Name_s
        {
            get
            {
                return (string)dataGridViewX1.SelectedRows[0].Cells["name"].Value;
            }
        }
        private void Select_customer_Load(object sender, EventArgs e)
        { this.tb_customerTableAdapter.Fill(this.dataSet.tb_customer);
       

        }

        private void dataGridViewX1_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
        {
            session.Color_Const.set_gv_color(dataGridViewX1);     
        }
    }
}
